<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <!--<div class="form-group">-->
        <!--<label class="control-label col-xs-12 col-sm-2">{:__('Openid')}:</label>-->
        <!--<div class="col-xs-12 col-sm-8">-->
    <input id="c-openid" class="form-control" name="row[openid]" type="hidden" value="{$row.openid}">
    <input id="c-id" class="form-control"type="hidden" value="{$row.id}">

        <!--</div>-->
    <!--</div>-->
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Avatar_image')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-avatar_image" class="form-control" size="50" name="row[avatar_image]" type="text" value="{$row.avatar_image}">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="plupload-avatar_image" class="btn btn-danger plupload" data-input-id="c-avatar_image" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-avatar_image"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-avatar_image" class="btn btn-primary fachoose" data-input-id="c-avatar_image" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-avatar_image"></span>
            </div>
            <ul class="row list-inline plupload-preview" id="p-avatar_image"></ul>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Username')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-username" data-rule="required" class="form-control" name="row[username]" type="text" value="{$row.username}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Nickname')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-nickname" data-rule="required" class="form-control" name="row[nickname]" type="text" value="{$row.nickname}" readonly>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Mobile')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-mobile" data-rule="required" class="form-control" name="row[mobile]" type="text" value="{$row.mobile}" >
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('上级昵称')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-agentid"  class="form-control" type="text" value="{$row.superior.nickname}" readonly>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Identity')}:</label>
        <div class="col-xs-12 col-sm-8">
            <select  id="c-identity" class="form-control selectpicker" name="row[identity]" data-rule="required">
                <option value="">请选择</option>
                {foreach name="identityList" item="vo"}
                    <option value="{$key}" {in name="key" value="$row.identity"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Membersn')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-membersn"  class="form-control" name="row[membersn]" type="text" value="{$row.membersn}" readonly>
        </div>
    </div>

    <div class="form-group pid" >
        <label class="control-label col-xs-12 col-sm-2">{:__('合作人等级')}:</label>
        <div class="col-xs-12 col-sm-8">
            <!--<input id="c-p_id" data-rule="required" class="form-control" name="row[p_id]" type="text" value="{$row.partner.name}">-->
            <select  id="c-p_id" class="form-control selectpicker" name="row[p_id]">
                <option value="">请选择</option>
                {foreach name="partnerList" item="vo"}
                <option value="{$vo.id}" {if $vo.id == $row.p_id}selected{/if}>{$vo.name}</option>
                {/foreach}
            </select>


        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Credit')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-credit" data-rule="required" class="form-control" step="0.01" name="row[credit]" type="number" value="{$row.credit}">
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
